package com.fetch;

import java.util.List;

import org.json.JSONObject;
import org.apache.http.NameValuePair;

import android.os.AsyncTask;

public abstract class Fetch extends AsyncTask<String, String, JSONObject> {

	
	protected abstract List<NameValuePair> getParams();
	protected abstract String getUrl();
	
	@Override
	protected JSONObject doInBackground(String... param) {
	
		JSONObject json = JSONParser.makeHttpRequest(getUrl(), "GET", getParams());
		return json;
	}

}
